.class public abstract Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;
.super Lcom/burstly/lib/component/AbstractAdaptor;
.source "AbstractBurstlyAdaptor.java"

# interfaces
.implements Lcom/burstly/lib/component/activitylauncher/IActivityLauncherSource;
.implements Lcom/burstly/lib/component/IClickTracker;


# instance fields
.field private mState:Lcom/burstly/lib/component/ComponentState;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 0
    .parameter "context"
    .parameter "viewId"

    .prologue
    .line 52
    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/component/AbstractAdaptor;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 53
    return-void
.end method


# virtual methods
.method public beforeLaunch()V
    .locals 0

    .prologue
    .line 125
    return-void
.end method

.method protected checkParameters(Ljava/util/Map;)V
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    .prologue
    .line 57
    .local p1, paramsFromServer:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    const-string v0, "componentState"

    invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/ComponentState;

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->mState:Lcom/burstly/lib/component/ComponentState;

    .line 58
    return-void
.end method

.method public destroy()V
    .locals 1

    .prologue
    .line 108
    invoke-super {p0}, Lcom/burstly/lib/component/AbstractAdaptor;->destroy()V

    .line 109
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->mState:Lcom/burstly/lib/component/ComponentState;

    .line 110
    return-void
.end method

.method protected getFullResponse()Lcom/burstly/lib/network/beans/ResponseBean;
    .locals 1

    .prologue
    .line 75
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->mState:Lcom/burstly/lib/component/ComponentState;

    invoke-virtual {v0}, Lcom/burstly/lib/component/ComponentState;->getFullResponse()Lcom/burstly/lib/network/beans/ResponseBean;

    move-result-object v0

    return-object v0
.end method

.method public getIntent()Landroid/content/Intent;
    .locals 4

    .prologue
    .line 129
    new-instance v0, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->getContext()Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;

    invoke-direct {v0, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 130
    .local v0, intent:Landroid/content/Intent;
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->mState:Lcom/burstly/lib/component/ComponentState;

    invoke-virtual {v2}, Lcom/burstly/lib/component/ComponentState;->getResponseData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v2

    invoke-virtual {v2}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getSkipButtonActivationTime()Ljava/lang/Integer;

    move-result-object v1

    .line 131
    .local v1, skipButtonActivationTime:Ljava/lang/Integer;
    if-eqz v1, :cond_0

    .line 133
    const-string v2, "blockBackButton"

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v3

    mul-int/lit16 v3, v3, 0x3e8

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 135
    :cond_0
    return-object v0
.end method

.method protected getRequestData()Lcom/burstly/lib/network/beans/RequestData;
    .locals 1

    .prologue
    .line 66
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->mState:Lcom/burstly/lib/component/ComponentState;

    invoke-virtual {v0}, Lcom/burstly/lib/component/ComponentState;->getRequestData()Lcom/burstly/lib/network/beans/RequestData;

    move-result-object v0

    return-object v0
.end method

.method protected getResponseData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;
    .locals 1

    .prologue
    .line 84
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->mState:Lcom/burstly/lib/component/ComponentState;

    invoke-virtual {v0}, Lcom/burstly/lib/component/ComponentState;->getResponseData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v0

    return-object v0
.end method

.method public getResponseHandler()Lcom/burstly/lib/component/ITrackClickResponseHandler;
    .locals 3

    .prologue
    .line 103
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/ClickResponseHandler;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->getContext()Landroid/content/Context;

    move-result-object v1

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->mState:Lcom/burstly/lib/component/ComponentState;

    invoke-direct {v0, v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/ClickResponseHandler;-><init>(Landroid/content/Context;Lcom/burstly/lib/component/ComponentState;)V

    return-object v0
.end method

.method protected getState()Lcom/burstly/lib/component/ComponentState;
    .locals 1

    .prologue
    .line 93
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->mState:Lcom/burstly/lib/component/ComponentState;

    return-object v0
.end method

.method public isAllowedToLaunch()Z
    .locals 1

    .prologue
    .line 145
    const/4 v0, 0x1

    return v0
.end method

.method public onActivityNotFound(Ljava/lang/String;)V
    .locals 0
    .parameter "className"

    .prologue
    .line 141
    return-void
.end method

.method public onFailToLaunch(Ljava/lang/String;)V
    .locals 3
    .parameter "cause"

    .prologue
    .line 114
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v0

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->getNetworkName()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-interface {v0, v1, v2, p1}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->failedToLoad(Ljava/lang/String;ZLjava/lang/String;)V

    .line 115
    return-void
.end method

.method public onSuccesToLaunch()V
    .locals 0

    .prologue
    .line 120
    return-void
.end method
